import request from '@/utils/request'

// 查询货主余额管理列表
export function listPayBalance(query) {
  return request({
    url: '/employer/payBalance/list',
    method: 'get',
    params: query
  })
}

// 查询货主余额管理详细
export function getPayBalance(id) {
  return request({
    url: '/employer/payBalance/' + id,
    method: 'get'
  })
}

// 新增货主余额管理
export function addPayBalance(data) {
  return request({
    url: '/employer/payBalance',
    method: 'post',
    data: data
  })
}

// 修改货主余额管理
export function updatePayBalance(data) {
  return request({
    url: '/employer/payBalance',
    method: 'put',
    data: data
  })
}

// 删除货主余额管理
export function delPayBalance(id) {
  return request({
    url: '/employer/payBalance/' + id,
    method: 'delete'
  })
}
